#pragma once
#include "Support.h"
#include "Data\GameData.h"
#include "Animate\AnimateManager.h"
USING_NS_CC;

class Enemy {
public:
	Enemy(const char *EnemyType);
	~Enemy();
	CC_SYNTHESIZE_READONLY(Animate *, m_attackAnimate, AttackAnimate);
	CC_SYNTHESIZE_READONLY(Animate *, m_deathAnimate, DeathAnimate);
	CC_SYNTHESIZE_READONLY(Animate *, m_runAnimate, RunAnimate);
	CC_SYNTHESIZE_READONLY(Animate *, m_freezeAnimate, FreezeAnimate);
	CC_SYNTHESIZE_READONLY(int, m_attack, Attack);
	CC_SYNTHESIZE_READONLY(int, m_HP, HP);
	CC_SYNTHESIZE_READONLY(int, m_moveSpeed, MoveSpeed);
	CC_SYNTHESIZE_READONLY(float, m_knockbackResistance, KnockbackResistance);
	CC_SYNTHESIZE_READONLY(int, m_givenGold, GivenGold);
	CC_SYNTHESIZE_READONLY(int, m_givenJewel, GivenJewel);
private:
	__Dictionary *m_dic;
	Animate* initAnimate(const char *type, int loop = 1, float delay = 0.08);
};